home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_onetime_musiccue.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  60 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_onetime_musiccue.cog
  4. #
  5. # duh.
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.  
  15.     #..................MESSAGES................
  16.     message        entered        
  17.     message        startup        
  18.  
  19.     
  20.     #..................ACTORS................
  21.     thing        player                                  local
  22.     
  23.  
  24.     #..................TRIGGER................
  25.     sector        triggerSECT
  26.  
  27.     #..................MUSIC CUE................
  28.     sound       thecue                  
  29.     
  30.     #..................VARIABLES................
  31.     int            cue_played=0                            local
  32.     int            vol                           
  33.     
  34. end
  35.  
  36. # ========================================================================================
  37. code
  38.  
  39. startup:
  40.  
  41.     player=GetLocalPlayerThing();
  42.  
  43. return;
  44. # ========================================================================================
  45.  
  46. entered:
  47.  
  48. if     (GetSenderRef() != triggerSECT) return;
  49. if    (GetSourceRef() != player) return;
  50. if     (cue_played != 0) return;
  51.     {
  52.         cue_played = 1;
  53.         PlaySoundLocal(thecue, vol, 0, 0x0, 0);
  54.     }
  55. return;
  56. # ========================================================================================
  57.     
  58. end
  59.  
  60.